import Vue from 'vue'
import vuex from 'vuex'
Vue.use(vuex);

export default new vuex.Store({
    state:{
        hasOrder:false
    },
    mutations:{
        switchOrder(state,val){//这里的state对应着上面这个state
            state.hasOrder = val;
        }
    }
})